$(function(){
    // 注意：订单选择收货地址页面是复用了 这个页面
  function getAdressList() {
    $.ajax({
      url: 'http://127.0.0.1:8360/api/address/list',
      method: 'GET',
      headers: {
        'X-Nideshop-Token': 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX2lkIjo4LCJpYXQiOjE2NDEzNzY1MDB9.wj0vyKFakLdpN2r2N9dTPpmlmnIeF6wVd_1OfrtNJl4'
      },
      success: function (res) {
        console.log(res);

        const html_str = template('tpl-adlist',res)
        $('#address-list').html(html_str)

    }
    })
  }


  getAdressList()

  

  
})